<%@ page import="com.hrm.entity.AdminEntity" %>
<%@ page import="com.hrm.entity.EmployeeEntity" %><%--
  Created by IntelliJ IDEA.
  User: zekdot
  Date: 20-2-26
  Time: 下午7:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <%--<link href="../css/style.css" rel="stylesheet" type="text/css" />--%>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
</head>

<body style="background:#f0f9fd; overflow:hidden">
<dl class="leftmenu">

    <%
    Object role = session.getAttribute("user");
    if(role != null){
    %>
    <!--修改密码-->
    <dd>
        <div class="title">
            <span><img  src="../image/part_add.png" /></span><a href="${pageContext.request.contextPath}/<%=role.getClass() == AdminEntity.class ? "admin" : "employee"%>/changePasswordPage" target="rightFrame">修改密码</a>
        </div>

    </dd>

    <%
    if(role.getClass() == EmployeeEntity.class){
    %>
    <dd>
        <div class="title">
            <span><img  src="../image/2.png" />
            </span><a href="${pageContext.request.contextPath}/employee/info" target="rightFrame">
            个人档案</a>
        </div>

    </dd>
    <dd>
        <div class="title">
            <span><img  src="../image/leftico01.png" />
            </span><a href="${pageContext.request.contextPath}/employee/salaryPage" target="rightFrame">
            薪水情况</a>
        </div>

    </dd>
    <%
    }
    %>
    <%
    if(role.getClass() == AdminEntity.class || ((EmployeeEntity)role).getAuth().equals("y")){
    %>
    <dd>
        <div class="title">
            <span><img  src="../image/user.png" />
            </span><a href="${pageContext.request.contextPath}/<%=role.getClass()==AdminEntity.class?"admin":"employee"%>/employeePage" target="rightFrame">
            <%=role.getClass()==AdminEntity.class?"各部门负责人":"员工"%>管理</a>
        </div>

    </dd>
    <%
    }
    %>

    <%
    }
    %>


</dl>

<%--<div>--%>

    <%--<%--%>
        <%--Object role = session.getAttribute("user");--%>
        <%--if(role != null){--%>
    <%--%>--%>
        <%--<ul>--%>
            <%--<h5><a href="${pageContext.request.contextPath}/<%=role.getClass() == AdminEntity.class ? "admin" : "employee"%>/changePasswordPage" target="rightFrame">修改密码</a></h5>--%>
        <%--</ul>--%>
        <%--<%--%>
            <%--if(role.getClass() == EmployeeEntity.class){--%>
        <%--%>--%>
            <%--<ul>--%>
                <%--<h5><a href="${pageContext.request.contextPath}/employee/info" target="rightFrame">个人档案</a></h5>--%>
            <%--</ul>--%>
        <%--<ul>--%>
            <%--<h5><a href="${pageContext.request.contextPath}/employee/salaryPage" target="rightFrame">薪水情况</a></h5>--%>
        <%--</ul>--%>
        <%--<%--%>
            <%--}--%>
        <%--%>--%>
        <%--<%--%>
            <%--if(role.getClass() == AdminEntity.class || ((EmployeeEntity)role).getAuth().equals("y")){--%>
        <%--%>--%>
            <%--<ul>--%>
                <%--<h5><a href="${pageContext.request.contextPath}/<%=role.getClass()==AdminEntity.class?"admin":"employee"%>/employeePage" target="rightFrame"><%=role.getClass()==AdminEntity.class?"各部门负责人":"员工"%>管理</a></h5>--%>
            <%--</ul>--%>
        <%--<%--%>
            <%--}--%>
        <%--%>--%>

    <%--<%--%>
        <%--}--%>
    <%--%>--%>




<%--</div>--%>
</body>
</html>
